package com.lu.library.ext

import android.content.Context
import java.io.InputStreamReader

/**
 * Author: luyuanwei
 * Date: 2025/2/10
 * Description: Context扩展
 * Version:
 * Copyright(C):2024-2025
 */


fun Context.readFromAsset(filename: String): String {
    val inputStream = assets.open(filename)
    val reader = InputStreamReader(inputStream, "UTF-8")
    val bufferedReader = reader.buffered()
    return bufferedReader.use { it.readText() }
}
class ContextExt {
}